﻿<%@ Assembly Name="RGB.SharePoint.Util.SPExtendedImageField, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7324bbf057d6c44e" %>
<%@ Page Language="C#" AutoEventWireup="true" Inherits="RGB.SharePoint.Util.SPExtendedImageField.ChoosePicture" %>
<%@Register TagPrefix="SharePoint" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" namespace="Microsoft.SharePoint.WebControls"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Image picker</title>
        <link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/core.css" />
        <script type="text/javascript" language="javascript">
            
            function centerWindow()
            {
                var x = ( screen.availWidth - 100 ) / 2; 
                var y = ( screen.availHeight - 280 ) / 2; 
                
                window.moveTo(x, y); 
                
            }

        </script>

    </head>
    <body onload="javascript:centerWindow();" class="ms-formbody">
        <form id="frmImagePicker" runat="server">
            <SharePoint:FormDigest runat="server" />
            <div style="padding: 10px; text-align: center;">
                <asp:FileUpload  ID="uploader" runat="server" class="ms-ButtonHeightWidth" style="width: 100%;text-align:center;" /><br />
                <br />
                <asp:ImageButton ID="btnUpload" ImageUrl="/_layouts/images/SPExtendedImageField/ImagePickerOk.png" OnClick="btnUpload_Click" runat="server" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:ImageButton ID="btnCancel" OnClick="btnCancel_Click" ImageUrl="/_layouts/images/SPExtendedImageField/ImagePickerCancel.png" runat="server" />
            </div>
        </form>
    </body>
</html>


   

